package org.jeecg.modules.demo.baseorde.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date: 2022-01-27
 * @Version: V1.0
 */
@Data
@TableName("base_order")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_order对象", description = "订单")
public class BaseOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 订单编号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderCode;
    @Excel(name = "支付流水号", width = 15)
    @ApiModelProperty(value = "支付流水号")
    private String payCode;
    @Excel(name = "实付金额", width = 15)
    @ApiModelProperty(value = "实付金额")
    private Double realAmount;
    @Excel(name = "付款方式", width = 15)
    @ApiModelProperty(value = "付款方式")
    private String payType;
    @Excel(name = "关联股东", width = 15)
    @ApiModelProperty(value = "关联股东姓名")
    private String stockName;
    /**
     * 创建日期
     */
    @Excel(name = "下单时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    @Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;
    @ApiModelProperty(value = "订单类型")
    private String orderType;
    @ApiModelProperty(value = "所属门店")
    private String storeName;
    @ApiModelProperty(value = "操作人")
    private String staffName;
    @ApiModelProperty(value = "操作人手机号")
    private String staffPhone;
    @ApiModelProperty(value = "会员姓名")
    private String memberName;
    @ApiModelProperty(value = "会员电话")
    private String memberPhone;
    @ApiModelProperty(value = "会员等级")
    private String memberLevel;
    @ApiModelProperty(value = "订单金额")
    private Double totalAmount;
    @ApiModelProperty(value = "优惠金额")
    private Double totalDiscountAmount;

    @ApiModelProperty(value = "微信支付")
    private Double weixinAmount;
    @ApiModelProperty(value = "微信记账")
    private Double weixinAccount;
    @ApiModelProperty(value = "支付宝支付")
    private Double zhifubaoAmount;
    @ApiModelProperty(value = "支付宝记账")
    private Double zhifubaoAccount;
    @ApiModelProperty(value = "会员余额实付")
    private Double balanceAmount;
    @ApiModelProperty(value = "股本余额实付")
    private Double stockBalanceAmount;
    @ApiModelProperty(value = "现金支付")
    private Double chargeAmount;
    @ApiModelProperty(value = "股东分红")
    private Double stockPercentage;
    @ApiModelProperty(value = "员工提成")
    private Double staffPercentage;
    @ApiModelProperty(value = "买家留言")
    private String remark;

    private String couponListJsonStr;
    private String commodityListJsonStr;
    private String storeId;
    private String memberId;
    private String staffId;
    private Double driveTurnoverAll;
    private Double staffShareMoney;
    private String memberDiscount;
    private Double reduction;
    private String staffShareId;
    private String staffShareName;
    private String stockPhone;
    private String staffShareType;
    private String orderJsonStr;
    private String payParamsStr;
    private String memberNickName;
    private String memberHeadPortrait;

    private Integer consumeNoticeFlag;
}
